#include <iostream>
#include <fstream>

#include "ImageProcess.h"

using namespace std;
using namespace ihefe_Image_Process_Library;

//int main(int argc, char ** argv)
//{
	CImg<unsigned int> cimg = { 10, 110, 220, 10, true };
	int b = 655350;
	int * p = new int[655350];

	FILE *stream;
	fopen_s(&stream, "F:\skyup.bmp", "rb");
	FILE *stream2;
	fopen_s(&stream2, "F:\skyup2.bmp", "wb");
	int count = cimg.fread(p, b, stream);
	cout << *(p + 10000) << endl;
	int * p2 = new int[count];
	p2 = p;
	cimg.fwrite(p2, b, stream2);
	//return 0;
//}